package com.coffee.admin.api.merchant.service;

import com.coffee.admin.api.merchant.query.MerchantInvoiceQuery;
import com.coffee.admin.api.merchant.result.MerchantInvoiceResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface MerchantInvoiceService {

	Page<MerchantInvoiceResult> getPager(MerchantInvoiceQuery param, PagerInfo pr);
	
	Integer count(MerchantInvoiceQuery param);
	
	MerchantInvoiceResult getDetail(Integer id,Integer merchantId);
	
	List<MerchantInvoiceResult> getList(MerchantInvoiceQuery param, PagerInfo pr);
	
	List<MerchantInvoiceResult> getList(MerchantInvoiceQuery param);
	
	List<MerchantInvoiceResult> getList();

	void delete(Integer id,Integer merchantId);

	void addOrUpdate(MerchantInvoiceResult result)throws BusinessException;
	
	Map<Integer,MerchantInvoiceResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,MerchantInvoiceResult> getItemMap();
	
}